import { message } from 'antd';
import React from 'react'
import { Link } from 'react-router-dom'
import './index.css'
export default function Topup() {
    function topUP() {
        const code = document.getElementById('topup').value;
        if (code === '123123123') {
            message.success('充值成功！！')
        } else {
            message.error('充值卡号不存在！！')
        }
    }
    return (
        <div className="topup">
            <h3 className="tt">地址管理<Link to='/mycenter/myaccount/topupbill' className='addsitebtn'>查看账单</Link></h3>
            <div>
                <input id='topup' type="text" placeholder="请输入充值卡兑换码进行充值(123123123)" />
                <button onClick={topUP}>充值</button>
            </div>

        </div>
    )
}
